/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.observer;

import com.aeky.observer.observable.SubjectDemo;
import com.aeky.observer.observer.Observer;
import com.aeky.observer.observer.ObserverA;
import com.aeky.observer.observer.ObserverB;

/**
 * 测试观察者模式
 * 
 * @author aeky
 */
public class Test {

    /**
     * @param args
     */
    @SuppressWarnings("unused")
    public static void main(String[] args) {
        SubjectDemo subjectDemo = new SubjectDemo();
        Observer obA = new ObserverA(subjectDemo);
        Observer obB = new ObserverB(subjectDemo);
        subjectDemo.dataChanged("change");
    }

}
